﻿#ifndef __myglobal_H__
#define __myglobal_H__
#include "cocos2d.h"
#include "Tank.h"
#include "MyMain.h"
#include "Tank0.h"
#include "Levels.h"
#define map_total 20
#define LEVELS 35
#define PI 3.1415926
#define ID_DIFF "diff"
#define ID_SOUND "sound"
#define ID_LEVEL "level"
#define INIT_SHOTLEVEL 0.7
#define NUMLIFE 3
extern Levels levels;
extern bool global_difficult;
extern CCSize global_winSize;
extern bool global_sound;
extern char tmpbuffer[100];
extern int map_score;// = 0;
extern int map_levelScore[];// = {0, 0, 0,0};
extern int map_life;// = 5;
extern  bool map_isPlay;// = false;
extern  bool map_over;// = false;
extern  int map_leave;
//extern bool map_reStart;// = false;
extern  int map_level;// = 1;
extern int map_location[];// = {192, 0, 384};
extern int map_map1[26][26];//
extern void map_changeplay(bool b);
extern bool map_getplay();
extern void map_allInit();
//extern int global_tank0num;// = 0;
extern bool global_tank0god;
extern int global_nowScore;// = 0;
extern float global_shotLevel;// = 50;
//extern bool global_bonusdie; //= false;
extern int global_tank1num;// = 0;
//extern bool global_isBomb;// = true;
extern bool global_run;// = true;
extern int global_oppose(int dir);
extern bool global_hitRect(cocos2d::CCPoint p1a ,cocos2d::CCPoint p1b,cocos2d::CCPoint  p2a,cocos2d::CCPoint p2b);
extern bool global_overlaps(cocos2d::CCRect a,cocos2d::CCRect b);
extern bool global_overlapsSprite(cocos2d::CCSprite* a,cocos2d::CCSprite* b);
extern CCArray * map_tankArr;// = new ArrayList<Tank>();
extern CCDictionary*  map_wallArr;// = new Hashtable<Integer,Wall>();
extern Tank0* global_myTank;
extern MyMain* global_instance;
extern void drawRect(CCRenderTexture*t,CCPoint p1,CCPoint p2,ccColor4F color);
#endif
